//
//  main.m
//  Day8homework
//
//  Created by dllo on 16/5/12.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "teacher.h"
#import "doctor.h"
#import "Course.h"
#import "Student.h"
#import "avg.h"
#import "sixth.h"
#import "match.h"


//struct Teacher {
//    char name[20];
//    int age;
//};




int main(int argc, const char * argv[]) {
   
//    struct Teacher mathTeacher = {"老王", 20};
//    printf("%d",mathTeacher.age);
    
    
//    BOOL i = panduan();
//    printf("%d", i);
//    return 0;
    
    
//    int x = Student.Chinese;
    struct Student black;
    black.Math.score = 20;
    black.Chinese.score = 20;
    black.English.score = 100;
    strcpy(black.name, "black");
    strcpy(black.sex, "M");
    
    typedef struct Student Student;
    Student tony = {"tony" ,"M"};
    tony.Math.score = 70;
    tony.Chinese.score = 80;
    tony.English.score = 90;
    
    
    avg(black);
    sixth(black);
    match(black, tony);
    
    
}
